package com.smooth.common.site.common.excep;

import com.smooth.common.site.common.enums.SiteCodeEnums;

public class SiteException extends RuntimeException {
	private static final long serialVersionUID = 3021459287122616729L;
	private String expStr;
	private SiteCodeEnums siteCodeEnums;
	
	public SiteException(SiteCodeEnums siteCodeEnums,String expStr){
		this.siteCodeEnums = siteCodeEnums;
		this.expStr = String.format(siteCodeEnums.name,expStr);
	}

	@Override
	public String getMessage() {
		return this.expStr;
	}
	
	public SiteCodeEnums getBizCode() {
		return this.siteCodeEnums;
	}

}
